Hello, I was wondering if anyone had a script that would parse all LinkModules and remove all empty linksets and is willing to share if not please review the modified script for logic errors? Thank you, -Jim EHcnck - Fri Sep 13 16:12:17 EDT 2013 |
Re: Cleanup empty linksets The names of the attributes are "Source" and "Target", not "source" and "target". I don't have experience in Baselined links, but I think you need to open and check all baselines of a module looking for link-sets. Your "all(oSrc->lmn)" I think won't find links in an object that is now deleted but has a link in a baseline. If you figure to identify empty link-sets in the folder and below, it would run a lot faster if you opened every source module only once (and all its baseoines), and find all active link-sets in the project. THEN open all the link-modules are remove the ones that are not active. -Louie |